package com.tyg.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tyg.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 工作人员表 服务类
 * </p>
 *
 * @author zhangjingnan
 * @since 2022-10-22
 */
public interface UserInfoService extends IService<UserInfo> {

    public boolean isIdCard(String workIdCard);

    public boolean addNewUser(UserInfo user);

    public UserInfo selectOne(QueryWrapper<UserInfo> queryWrapper);

    public List<UserInfo> getUserList(Map<String, Object> map);

    public int insert(UserInfo user);

    public UserInfo selectById(int workId);

    public boolean updateById(UserInfo user);

    public void updateUserRole(UserInfo user);

    public List<UserInfo> selectList();
}
